@extends('layouts.admin')
@section('content')
						<div id="content-header">
				<h1>友情链接管理</h1>
				<div class="btn-group">
					<a class="btn btn-large tip-bottom" title="Manage Files"><i class="icon-file"></i></a>
					<a class="btn btn-large tip-bottom" title="Manage Users"><i class="icon-user"></i></a>
					<a class="btn btn-large tip-bottom" title="Manage Comments"><i class="icon-comment"></i><span class="label label-important">5</span></a>
					<a class="btn btn-large tip-bottom" title="Manage Orders"><i class="icon-shopping-cart"></i></a>
				</div>
			</div>
			<div id="breadcrumb">
				<a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i>友情链接列表</a>
				<a href="#" class="current">友情链接修改</a>
			</div>
			<div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">						
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-th"></i>
								</span>
								{{--<span class="label label-info">用户首页</span>--}}
							</div>
							<div class="widget-content">

			<div class="container-fluid">
				{{--<div class="row-fluid">--}}
					<div class="span12">
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-align-justify"></i>									
								</span>
								<h5>修改友情链接</h5>
					        </div>
							<div class="widget-content nopadding">
								<form action="{{url('admin/EditData',['id'=>$data['id']])}}" method="post" class="form-horizontal" />
        								{{csrf_field()}}
									<div class="control-group" style="width:700px;margin:0 auto">
										<label class="control-label">链接名称</label>
										<div class="controls">
											<input type="text" name="linkname" value="{{$data['linkname']}}" id="linkname" style="width:250px;height:30px" />
											<span id="nspan"></span>
										</div>
									</div>
								<div class="control-group" style="width:700px;margin:0 auto">
									<label class="control-label">链接地址</label>
									<div class="controls">
										<input type="text" name="linkurl" value="{{$data['linkurl']}}" id="linkurl" style="width:250px;height:30px" />
										<span id="uspan"></span>
									</div>
								</div>
									<div class="form-actions" style="width:100px;margin:0 auto;background:rgb(249,249,249)">
										<input type="submit" value="确认修改" class="btn btn-primary" style="margin-left:-150px;">
									</div>
								</form>
							</div>
						</div>						
					</div>
				{{--</div>							--}}
							</div>
						</div>
						
					</div>
				</div>
				<div class="row-fluid">
					<div id="footer" class="span12">
						2012 &copy; Unicorn Admin. Brought to you by <a href="https://wrapbootstrap.com/user/diablo9983">diablo9983</a>
					</div>
				</div>
			</div>
			</div>
				<script>
                    {{--判断输入的链接名称和地址是否为空--}}
                    $('#linkname').blur(function()
                    {
                        if($('#linkname').val()=='')
                        {
                            $('#nspan').html("<a style='color:red;font-size:12px;'>链接名称不能为空</a>");
                        }

                    });

                    $('#linkurl').blur(function()
                    {
                        if($('#linkurl').val()=='')
                        {
                            $('#uspan').html("<a style='color:red;font-size:12px;'>链接地址不能为空</a>");
                        }
                    });


				</script>
@endsection